package com.my.auth.api;

import com.my.auth.common.result.Result;
import com.my.auth.service.entity.AuthUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 用户服务feign
 *
 * @author: ChickenWing
 * @date: 2023/12/3
 */
@FeignClient("my-auth-service")
public interface UserFeignService {

    @RequestMapping("/user/getUserInfo")
    Result<AuthUser> getUserInfo(@RequestBody AuthUser user);

    @RequestMapping("/user/listByIds")
    Result<List<AuthUser>> listUserInfoByIds(@RequestBody List<String> ids);

}
